import request from '@/utils/request'

// 用户登录
export const loginApi = function (data) {
  return request({
    url: '/auth/login',
    method: 'post',
    data
  })
}

// 管理员信息
export const msgApi = function () {
  return request({
    url: '/auth/currentUser',
    method: 'GET'
  })
}
